package com.hank.impl;

import com.hank.Dao.UserVisitActionDao;
import com.hank.domain.UserVisitAction;
import com.hank.jdbc.JDBCHelper;

public class UserVisitActionImpl implements UserVisitActionDao {

    @Override
    public void insert(UserVisitAction userVisitAction){
        String sql ="insert into user_visit_action values(?,?,?,?,?,?,?,?,?,?,?,?,?)";
        JDBCHelper.getInstance().excuteUpdate(sql,new Object[]{
            userVisitAction.getId(),userVisitAction.getUserId(),userVisitAction.getSessionId(),userVisitAction.getPageId(),
                userVisitAction.getActionTime(),userVisitAction.getSearchKeyword(),userVisitAction.getClickCategoryId(),userVisitAction.getClickProductId(),
                userVisitAction.getOrderCategoryIds(),userVisitAction.getOrderProductIds(),userVisitAction.getPayCategoryIds(),userVisitAction.getPayProductIds(),userVisitAction.getDate()
        });
    }

}
